package com.suifeng.mq.common.exception;

public class NoStockException extends RuntimeException {

    private Long goodsId;

    public NoStockException(Long goodsId) {
        super("商品id:" + goodsId + "; 没有足够的库存了");
    }

    public NoStockException(String msg){
        super(msg);
    }

    public Long getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Long goodsId) {
        this.goodsId = goodsId;
    }
}
